package com.zx.oa.service.job;

import com.zx.oa.dao.job.JobDao;
import com.zx.oa.dao.job.JobDaoImpl;
import com.zx.oa.entity.CheckJob;
import com.zx.oa.entity.Job;

import java.util.List;

public class JobServiceImpl implements JobService {

    //数据访问层对象
    JobDao jobDao = new JobDaoImpl();

    @Override
    public List<Job> getJobList(String queryMajor, String queryClassName, int currentPageNo, int pageSize) {
        return jobDao.getJobList(queryMajor, queryClassName, currentPageNo, pageSize);
    }

    @Override
    public int getJobTotalCount(String queryMajor, String queryClassName) {
        return jobDao.getJobTotalCount(queryMajor, queryClassName);
    }

    @Override
    public List<Job> getJobMajorList() {
        return jobDao.getJobMajorList();
    }

    @Override
    public List<Job> getJobClassNameList() {
        return jobDao.getJobClassNameList();
    }

    @Override
    public boolean upsetJob(CheckJob checkJob) {
        return jobDao.upsetJob(checkJob);
    }

}
